@extends('layouts.app')
@section('content')
    <span class="btn btn-warning pull-right" lay-submit lay-filter="login" id="span1">列表</span>
    <div id="d1">
        <table class="layui-table">
            <thead>
            <tr>
                <th>
                    编号
                </th>
                <th>
                    ID
                </th>
                <th>
                    名称
                </th>
                <th>
                    类型
                </th>
                <th>
                    价格
                </th>
                <th>
                    时长
                </th>
                <th>
                    发布时间
                </th>
                <th>
                    更新时间
                </th>
                <th>
                    操作
                </th>
            </tr>
            </thead>
            <tbody>
            @foreach($info as $key=>$r)
                <tr>
                    <td>{{$r->guard_num}}</td>
                    <td>{{$r->id}}</td>
                    <td>{{$r->guard_name}}</td>
                    <td>{{$r->guard_type}}</td>
                    <td>{{$r->guard_much}}</td>
                    <td>{{$r->guard_time}}</td>
                    <td>{{$r->guard_addtime}}</td>
                    <td>{{$r->guard_edittime}}</td>
                    <td><a href="guard_edit/{{$r->id}}">编辑</a></td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endsection